//
//  Global.h
//  FrogDrying
//
//  Created by Le Thanh Hai on 4/2/13.
//
//

#import <Foundation/Foundation.h>
#import "AppDelegate.h"
#import "PauseScreen.h"

#define TotalColor 7

#define WIDTH_IPHONE_5 568

#define IS_IPHONE_5 ( [ [ UIScreen mainScreen ] bounds ].size.height == WIDTH_IPHONE_5 )

#define appDelegate  ((AppController*)[UIApplication sharedApplication].delegate)

#define ADD_BACKGROUND                                                      \
            CCSprite *bg;                                                   \
            if (IS_IPHONE_5) {                                              \
                bg = [CCSprite spriteWithFile:@"background-568.png"];       \
            } else {                                                        \
                bg = [CCSprite spriteWithFile:@"background.png"];           \
            }                                                               \
            bg.anchorPoint = CGPointZero;                                   \
            bg.position = CGPointZero;                                      \
            [self addChild:bg z:-100];


typedef enum {
    COLOR_BLUE = 1,
    COLOR_CYAN,
    COLOR_GREEN,
    COLOR_PINK,
    COLOR_RED,
    COLOR_WHITE,
    COLOR_ALL,
} ColorType;

#define OFFSET_POINT ccp(0, 0)

@interface Global : NSObject
+(void)setScore:(NSInteger)score;
+(NSInteger)getHeightestScore;
+(NSInteger)getLastestScore;
+(BOOL)checkNetworkAvailable;
@end
